﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Abstract1
{
    class TaskNPC : NPC
    {
        private string name;
        private string type;
        public TaskNPC(string name,string type):base(name,type)
        {
            this.name = name;
            this.type = type;
        }

        public string Name1 { get => name; set => name = value; }
        public string Type1 { get => type; set => type = value; }

        


        public override void ChatWithPlayer()
        {
            Console.WriteLine("{0}NPC正在与你交谈........ ", type);

        }
    }
}
